package com.hq.service;

import com.hq.bean.Goods;
import com.hq.dao.GoodsDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class GoodsServiceImpl implements GoodsService{
    @Resource
    private GoodsDao dao;
    @Override
    public List<Goods> list(Map map) {
        return dao.list(map);
    }

    @Override
    public int insert(Goods goods) {
        return dao.insert(goods);
    }
}
